Skip to content

gh-10158: Compare platform versions in devtools runtime checks - #17031

Open
hoshposh wants to merge 1 commit into
zen-browser:devfrom
hoshposh:fix-about-debugging-version-10158
Open

hoshposh wants to merge 1 commit into
zen-browser:devfrom
hoshposh:fix-about-debugging-version-10158

Conversation

@hoshposh

@hoshposh hoshposh commented Dec 5, 2026

Copy link
Copy Markdown
Contributor

On about:debugging → "This Zen", a banner always says the connected browser is more recent than the local one. The Tracer panel in the Browser Toolbox's debugger shows the same kind of false warning: "Client and remote runtime have different versions (1.0.0 vs 161.0.1)".

Both read the local version from AppConstants.MOZ_APP_VERSION, which in Zen is Zen's own version. They compare it with the runtime's platformversion, which comes from appInfo.platformVersion (devtools/shared/system.js) and is the Firefox version. In Firefox the two are the same, so the warnings never appear there.

remote-debugging/version-checker.js (about:debugging) and the debugger's src/client/firefox.js (Tracer) now use Services.appinfo.platformVersion for the local version, and the unused AppConstants imports are gone. Real mismatches with other runtimes are still reported, now against a range based on the Firefox version.

Test: devtools/browser_remote_debugging_version_check.js connects to the local runtime the same way about:debugging does and checks that it's reported as compatible.

  • npm test devtools -- --headless: 2/2 pass (0/2 without the fix)
  • Checked by hand on Linux, before and after the fix: the about:debugging banner and the Tracer warning are both gone with it.
  • npm run lint and npm run typecheck pass.

Fixes #10158

…ecks

about:debugging and the debugger Tracer compared the local
AppConstants.MOZ_APP_VERSION against the remote runtime's platform
version. In Zen, MOZ_APP_VERSION is Zen's own version, so the remote
always looked too recent. Use Services.appinfo.platformVersion, the
value the server reports, on the local side too.
@hoshposh
hoshposh requested a review from mr-cheffy as a code owner December 5, 2026 04:34

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

about:debugging wrong connected browser warning

1 participant